/**
 * 
 */
package com.locationhistory.utils;


/**
 * Class interface constants using in application.
 * 
 * @author thuanlv1
 * 
 */
public interface Constants {
	String GOOGLE_MAP_API				= "http://maps.googleapis.com/maps/api/geocode/json?latlng=";
	 
    String DB_NAME 						= "GPDatabase";
    String DB_PATH 						= "/data/data/com.locationhistory/databases/";
    
    String OK							= "OK";
   

    String JSON_NODE_STATUS 			= "status";
    String JSON_NODE_RESULTS			= "results";
    String JSON_NODE_FORMATED_ADDRESS	= "formatted_address";
    String TYPE_UNKNOW 					= "UNKNOWN";
    
    public static final int SLEEP_THREAD_TIME 	= 30000;
    public static final String THREAD_NAME		= "GET_LOCATION";
    
    /**
     * 
     * Database constants
     * 
     * @author thuanlv1
     *
     */
    public interface Database {
        // Database Version
        public static final int DATABASE_VERSION 			= 1;
        
        public static final String DATABASE_PATH 			= "/data/data/com.locationhistory/databases/";
        // Database Name
        public static final String DATABASE_NAME 			= "location_history";
        // Device table name
        public static final String TABLE_DEVICE 			= "device";
        // Location table name
        public static final String TABLE_LOCATION 			= "location";
     
        // Device Table Columns names
        public static final String KEY_DEVICE_ID 			= "id";
        public static final String KEY_DEVICE_STATUS 		= "status";
        public static final String KEY_DEVICE_UUID 			= "uuid";
        public static final String KEY_DEVICE_TIMER 		= "timer";
        public static final String KEY_DEVICE_START_TIME 	= "start_time";
        public static final String KEY_DEVICE_STOP_TIME 	= "stop_time";
        
        //Location Table Colums names
        public static final String KEY_LOCATION_ID 				= "id";
        public static final String KEY_LOCATION_DEVICEID 		= "device_id";
        public static final String KEY_LOCATION_LOCATION 		= "location";
        public static final String KEY_LOCATION_UPDATED_TIME 	= "updated_time";
    }
    
    /**
     * date constants
     * 
     * @author thuanlv1
     *
     */
    public interface Date {
    	public static final String MMDDYYYYHHMMSS_PATTERN = "MM-dd-yyyy hh:mm:ss";
    }
    
}
